import Vue from 'vue'
import store from '../store'
Vue.config.errorHandler = function(err, vm, info) {
  store.dispatch('errorLog/addErrorLog', {
    err,
    vm,
    href: window.location.href,
    info
  })
  console.error(err, info)
}
